package com.meilai.project.dto.business.contract;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.meilai.project.vo.business.contract.ContractMediaCountDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;

/**
 * @author 张驰
 * @description 合同信息（为客户信息提供）
 * @date 2023-03-06 13:36
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ContractInfoForCustomerDTO implements Serializable {
    private static final long serialVersionUID = 8468779387412436248L;

    @ApiModelProperty("合同年月")
    @DateTimeFormat(pattern = "yyyy年MM月")
    @JsonFormat(pattern = "yyyy年MM月")
    private LocalDate month;

    @ApiModelProperty("合同总价（万元）")
    private BigDecimal amount;

    @ApiModelProperty("合同总价（万元）大写")
    private String amountBig;

    @ApiModelProperty("自有资源类型及数量")
    private List<ContractMediaCountDTO> mediaCountList = new ArrayList<>();

    @ApiModelProperty("代理资源类型及数量")
    private List<ContractMediaCountDTO> proxyMediaCountList = new ArrayList<>();
}
